﻿using Interview.Model.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Interview.Model
{
    public class Milk : Ingredient
    { 
        public Milk(IngredientgradeEnum grade) : base("奶", grade) { }

        public string GetLevelDescription()
        {
            switch (Grade)
            {
                case IngredientgradeEnum.Less: return "少";
                case IngredientgradeEnum.Medium: return "中";
                case IngredientgradeEnum.More: return "高";
                default: return "";
            }
        }

        public override string ToString()
        {
            return $"{GetLevelDescription()}{Name}";
        }
    }
}
